package day20171128;

public class StringExample5 {
    public static void main(String[] args) {
        String s[]={"ab","c","d"};
        reverse(s[0],s[1]);
        System.out.println("s[0]="+s[0]+" s[1]="+s[1]);
    }
    private static void reverse(String s0, String s1) {
        String s;
        s=s0;
        s0=s1;
        s1=s;

    }
}
